const path = require('path')
function resolve(dir) {
    return path.join(__dirname, dir)
}
module.exports = {
    devServer: {
        proxy: {
            '/api': {
                target: 'http://t.yushu.im',
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    },
    configureWebpack: {
        resolve: {
            alias: {
                '@': resolve('src')
            }
        }
    },
    css: {
        loaderOptions: {
            less: {
                lessOptions: {
                    modifyVars: {
                        // 直接覆盖
                        'nav-bar-background-color': '#42bd56',
                        'nav-bar-text-color': '#ffffff',
                        'nav-bar-icon-color': '#ffffff',
                        'nav-bar-title-text-color': '#ffffff',
                    }
                }
            }
        }
    },
    lintOnSave: false
}